import unittest
import app
from script.test01_login import TestLoginAPI
from script.test02_employee import TestEmployee
from lib.HTMLTestRunner_PY3 import HTMLTestRunner

suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestLoginAPI))
suite.addTest(unittest.makeSuite(TestEmployee))

report = app.BASE_DIR + "/report/report.html"
with open(report, "wb")as f:
    runner = HTMLTestRunner(f, title="API Report")
    runner.run(suite)
